import request from '@/utils/request'

// 查询订单出库列表
export function listSalesDetail(query) {
  return request({
    url: '/storage/salesDetail/list',
    method: 'get',
    params: query
  })
}

// 查询订单出库详细
export function getSalesDetail(orderId) {
  return request({
    url: '/storage/salesDetail/' + orderId,
    method: 'get'
  })
}

// 新增订单出库
export function addSalesDetail(data) {
  return request({
    url: '/storage/salesDetail',
    method: 'post',
    data: data
  })
}



// 删除订单出库
export function delSalesDetail(orderId) {
  return request({
    url: '/storage/salesDetail/' + orderId,
    method: 'delete'
  })
}

// 订单出库
export function salesExit(data) {
  return request({
    url: '/storage/salesDetail',
    method: 'put',
    data: data
  })
}
